home *** CD-ROM | disk | FTP | other *** search
- #ifndef _REGIONDEF
- #define _REGIONDEF
- #include <stddef.h>
- #include <conio.h>
-
- // This class saves and releases a region of the screen
- class region
- {
- protected:
- // Screen coordinates
- int left;
- int top;
- int right;
- int bot;
- // Storage area
- char *buf;
- public:
- // Methods:
-
- // Constructor -- if save is 0, the screen region isn't saved.
- // You'd save it later with the reinit() method.
- region(int x0,int y0,int x1,int y1,int save=1);
-
- // Destructor
- ~region();
-
- // Force the region to reread its screen area and save it
- void reinit(void);
-
- // Restore screen data and destroy it
- void restore(void);
-
- // Destroy screen data with out restoring it
- void destroy(void);
- };
-
- #endif
-
-